<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	java.lang.String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>复旦大学人员信息</title>
	<link rel="stylesheet" href="<%=path%>/back/util/css/reset.css">
	<link rel="stylesheet" href="<%=path%>/back/util/css/app.css">
	<script type="text/javascript" src="<%=path%>/back/util/js/jq-1.12.4.min.js"></script>
	<script type="text/javascript" src="<%=path%>/back/util/js/paging.js"></script>
	<style>
			.page_div {
				font-size: 15px;
				font-family: "microsoft yahei";
				color: #666666;
				box-sizing: border-box;
				position: absolute;
				left: 50%;
				bottom:0;
				transform: translateX(-50%);
				-webkit-transform: translateX(-50%);
				-moz-transform: translateX(-50%);
				-ms-transform: translateX(-50%);
				-o-transform: translateX(-50%);
				border:1px solid #ccc;
				border-radius: 3px;
			}
			/*
			 * 页数按钮样式
			 */
			
			.page_div a {
				min-width: 30px;
				height: 28px;
				text-align: center;
				cursor: pointer;
				line-height: 28px;
				color: #666666;
				font-size: 13px;
				display: inline-block;
			}
			
			#firstPage,
			#lastPage {
				width: 50px;
				border-right: 1px solid #ccc;
				color: #666;
			}
			#lastPage{
				border-right: 0;
				border-left: 1px solid #ccc!important;
			}
			#prePage,
			#nextPage {
				width: 70px;
				color: #666;
			}
			
			.page_div .current {
				background-color: #267dc2;
				border-color: #267dc2;
				color: #FFFFFF;
			}
			
			.totalPages {
				margin: 0 10px;
			}
			
			.totalPages span,
			.totalSize span {
				color: #0073A9;
				margin: 0 5px;
			}
			.totalSize,.totalPages{
				display: none;
			}
		</style>
</head>
<body>
	<div class="max-container">
		<div class="top-part">
			<img src="<%=path%>/back/util/image/LOGO.png" alt="" class="logo-img"/>
			<div class="logopart">
				复旦大学<br/>-会议
			</div>
			<div class="dengluinfo-part">
				<%-- <input type="hidden" name="role" id="role" value="${role } " /> --%>
				欢迎&nbsp;&nbsp;|&nbsp;&nbsp;<span id="username">${admin_user.name }</span><span id="reginLogin" class="escLogin">退出登录</span>
			</div>
		</div>
		<div class="content-part">
		
			<div class="content-part-left">
			
			</div>
			<div class="content-part-right">
				<c:import url="${url}"></c:import>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
		$(function(){
			$('.content-part-left').on('click','dl',function(e){
				e.stopPropagation()
				if($(this).find('dd').length==0){
					$(this).find('dt').addClass('removeb')
				}
				$(this).css('background-color','#303e4e').siblings().css('background-color','inherit');
				if($(this).hasClass('active')){
					$(this).removeClass('active');
				}else{
					$(this).addClass('active').siblings().removeClass('active');
				}
			})
			$('.content-part-left').on('click','a',function(e){
				e.stopPropagation()
			})
			var windowH = $(window).height();
			var navH = $('.top-part').innerHeight();
			var leftH = windowH - navH;
			$('.content-part-left').css('height',leftH)
			$('.content-part-right').css('height',leftH)
		})

</script>
<script>

	$(function(){
		$('.escLogin').click(function(){
			window.location.href="<%=path%>/manage/exc.do?";
		});
		$.post('<%=path%>/manage/menuList.do',
				{},
				function(data){
					var html='';
					$.each(data.list,function(i,o){
						if(i==0){
							html+='<dl class="active">'
								html+='<dt>'+o.name+'</dt>';
						}else{
							html+='<dl ">'
							html+='<dt ">'+o.name+'</dt>';
						}
						$.each(o.list,function(i,s){
						html+='<dd><a href="'+s.url+'">'+s.name+'</a></dd>'
						});
						html+='</dl>'
					});
					$('.content-part-left').html(html);
					
					var url = window.location.href;
					var url_position = url.indexOf("interwar");
					url = url.substr(url_position);
					url = url.replace('interwar/','');
						
					var url_position2 = url.indexOf(".");
					url = url.substr(0,url_position2,url);
						
					if(url=='admin/index' || url=='admin/index' || url=='teacher/editor'){ 
						setSty(0);
						
					}else if(url=='adminPoster/index'||url=='adminPoster/show'||url=='scientific/addZd'||url=='major/addZd'||url=='scientific/updateZd'||url=='major/updateZd'||url=='article/index'||url=='scientific/editor'||url=='scientific/showScientific'||url=='major/edit'||url=='scientific/edit'||url=='major/show'||url=='scientific/updateCost'||url=='article/edit'||url=='article/show'||url=='scientific/downloadExcel'||url=='major/downloadExcel'||url=='article/downloadExcel'){
						setSty(1);
						
					}else if(url=='adminAbstract/index' ||url=='adminAbstract/show'|| url=='abroad/index'|| url=='abroad/downloadExcel' || url=='visiting/index' || url=='visiting/downloadExcel'|| url=='tissue/index'|| url=='tissue//downloadExcel' || url=='office/index'|| url=='office/downloadExcel'||url=='hmeeting/index'||url=='meeting/show'||url=='meeting/downloadExcel'||url=='meeting/edit'||url=='abroad/show'||url=='abroad/edit'||url=='visiting/show'||url=='visiting/edit'||url=='office/show'||url=='office/edit'||url=='tissue/show'||url=='tissue/edit'||url=='hmeeting/show'||url=='hmeeting/edit'){
						setSty(2);
						
					}else if(url=='adminHotel/index' ||url=='adminHotel/show'|| url=='ufacility/index'|| url=='ufacility/downloadExcel'||url=='bfacility/edit'||url=='bfacility/show'||url=='ufacility/show'||url=='ufacility/edit'){
						setSty(3);
						
					}else if(url=='adminContact/index'||url=='adminContact/show' || url=='larticle/index' || url=='larticle/downloadExcel'|| url=='distribution/index'|| url=='distribution/downloadExcel' || url=='opening/index' || url=='opening/downloadExcel'|| url=='popula/index'|| url=='popula/downloadExcel'||url=='lectures/show'||url=='lectures/edit'||url=='larticle/show'||url=='larticle/edit'||url=='distribution/show'||url=='distribution/edit'||url=='opening/show'||url=='opening/edit'||url=='popula/show'||url=='popula/edit'){
						setSty(4);
						
					}
		});
		function setSty(i){
			$('.content-part-left dl').removeClass("active");
			$('.content-part-left dd').removeClass("removeb");
			$('.content-part-left dl:eq('+i+')').addClass("active");
			$('.content-part-left dl:eq('+i+') dd').addClass("removeb");
		}



	})
	
	
	
</script>
</html>